-- GENERATED SPELL FOR [Shadowforge Tunneler] --


function spell0_2739(pUnit, Event) --@Defensive Stance,Self--
pUnit:FullCastSpellOnTarget(7164,pUnit)
pUnit:RegisterEvent('Sorts_2739', 631, 1)
end

function spell1_2739(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(8380,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2739', 683, 1)
end

function Sorts_2739(pUnit, Event)
local choix_sorts_2739 = math.random(0, 1)
if choix_sorts_2739 == 0 then
pUnit:RegisterEvent('spell0_2739', 1, 1)
end
if choix_sorts_2739 == 1 then
pUnit:RegisterEvent('spell1_2739', 1, 1)
end
end

function mob2739_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2739', math.random(1500, 3000), 1)
end

function mob2739_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2739_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2739_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2739, 1, 'mob2739_Action')
RegisterUnitEvent(2739, 2, 'mob2739_Leave')
RegisterUnitEvent(2739, 3, 'mob2739_Kill')
RegisterUnitEvent(2739, 4, 'mob2739_Die')
